import scrapy
from scrapyspider.items import BigType
from scrapyspider.items import Type

class bigType_typeSpider(scrapy.Spider):
    name = 'bigType_type'
    start_urls = ['https://www.saikr.com/vs']

    def parse(self, response):
        item_bigType = BigType()
        item_type = Type()

        selectors = response.xpath('//div[@class="fl sk-event-screen-subject-box clearfix"]//div[contains(@class,"fl item-box")]')
        for selector in selectors:
            bigType = selector.xpath('.//h3[@class="item-title"]/a/text()').extract()
            item_bigType['bigType_name'] = "".join(bigType)
            yield  item_bigType

            type = selector.xpath('.//div[@class="item-con clearfix"]/a/text()').extract()
            for i in type:
                item_type['type_name'] = i
                item_type['bigType_name'] = "".join(bigType)
                yield  item_type